<template>
  <view class="normal-login-container">

    <view class="item-wrap" style="margin-bottom: 0">
      <view class="lineBottom10">
        <uni-section title="基础信息" type="line"/>
      </view>

      <view style="margin: 8rpx 20rpx 8rpx 20rpx">
        <uni-forms  labelWidth="auto">
          <uni-forms-item label="客户名称:">
            <text>{{ ruleForm.customerName }}</text>
          </uni-forms-item>

          <uni-forms-item label="客户类型:">
            <text>{{ handleLabel(dict.type.customer_type, ruleForm.customerType) }}</text>
          </uni-forms-item>

          <uni-forms-item label="订单编号:">
            <text>{{ ruleForm.orderCode }}</text>
          </uni-forms-item>

          <uni-forms-item label="车辆产权:">
            <text>{{ ruleForm.propertyRightName }}</text>
          </uni-forms-item>

          <uni-forms-item label="车辆归属:">
            <text>{{ ruleForm.ascription }}</text>
          </uni-forms-item>

          <uni-forms-item label="车辆运营城市:">
            <text>{{ ruleForm.operationsName }}</text>
          </uni-forms-item>

          <uni-forms-item label="车辆大区:">
            <text>{{ ruleForm.region }}</text>
          </uni-forms-item>

          <uni-forms-item label="品牌:">
            <text>{{ ruleForm.brandName }}</text>
          </uni-forms-item>

          <uni-forms-item label="车系:">
            <text>{{ ruleForm.seriesName }}</text>
          </uni-forms-item>

          <uni-forms-item label="车型:">
            <text>{{ ruleForm.modelName }}</text>
          </uni-forms-item>

          <uni-forms-item label="车架号:">
            <text>{{ ruleForm.vinNo }}</text>
          </uni-forms-item>

          <uni-forms-item label="车牌号:">
            <text>{{ ruleForm.carNo }}</text>
          </uni-forms-item>

          <uni-forms-item label="当前交强险供应商:">
            <text>{{ ruleForm.jqxCompany }}</text>
          </uni-forms-item>

          <uni-forms-item label="交强险到期日:">
            <text></text>
          </uni-forms-item>

          <uni-forms-item label="当前商业险供应商:">
            <text>{{ ruleForm.syxCompany }}</text>
          </uni-forms-item>

          <uni-forms-item label="商业险到期日:">
            <text></text>
          </uni-forms-item>

          <uni-forms-item label="续保保单性质:">
            <text></text>
          </uni-forms-item>

          <uni-forms-item label="处理人:">
            <text>{{ ruleForm.processedByName }}</text>
          </uni-forms-item>

          <uni-forms-item label="处理时间:">
            <text>{{ ruleForm.processedByTime }}</text>
          </uni-forms-item>

          <uni-forms-item label="工单创建时间:">
            <text>{{ ruleForm.createTime }}</text>
          </uni-forms-item>

        </uni-forms>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'basicInfo',//基础信息
  dicts:['customer_type'],
  props: {
    ruleForm: {
      type: Object,
      default: {}
    },
  },
  computed: {
    handleLabel() {
      return function (arr, type) {
        let name = ''
        arr.map((v) => {
          if (type == v.value) {
            name = v.label;
          }
        });
        return name
      }
    }
  },
};
</script>

<style lang="scss" scoped>
.car-wrap {
  display: flex;
  flex-direction: column;
  padding: 20rpx 20rpx 20rpx 0;
  border: 1px solid #dadada;
  margin: 10rpx 20rpx;
  border-radius: 8rpx;

}


</style>


